<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="<? echo $refresh; ?>;url=<? echo $redirect; ?>">
<title><?php echo $title; ?></title>
<style>
body {font:12px Tahoma, Verdana, Arial; line-height:160%;}
#feedback {width:500px; margin:100px auto 80px auto; border:1px solid #CAD9EA; text-align:left;}
#feedback .head {border-bottom:1px dashed #CAD9EA; height:30px; line-height:30px; padding:0 0 0 10px; color:#000; font-size:14px; font-weight:bold;}
#feedback .body {padding:25px 15px; text-align:center;}
#feedback .body .message {}
#feedback .body .control {margin-top:20px;}
#debuginfo {margin-top:10px;}
#debuginfo em, #debuginfo i {color:red;}
#debuginfo pre {margin:5px 0; padding:5px; border:1px dashed #E0E0E0; font:12px 'Courier New'; font-style:italic; color:#00AA00;}
</style>
</head>
<body>
<div id="tbody">
  <div id="feedback">
    <div class="head"><?php echo $title; ?></div>
    <div class="body">
      <div class="message"><?php echo $message; ?></div>
      <div class="control"><a href="<?php echo $redirect?>" title=""><?php echo $linktext; ?></a></div>
    </div>
  </div>
</div>
<?php if (EGP_Core::debug()) { ?>
<div id="debuginfo">
  <?php $monitor = EGP_Registry::get('db')->getMonitor(); ?>
  页面运行时间 <em><?php number_format(microtime(true)-START_TIME, 8, '.', '')?></em> 秒，共个 <em><?php echo count($monitor); ?></em> 查询，消耗时间 <em><?php $monitor->totalSecs; ?></em> 秒<br />
  <?php foreach ($monitor as $query) { ?>
  <pre><?php $query->sql; ?><div style="color:gray;">-- <?php echo $query->secs; ?> 秒</div></pre>
  <?php } ?>
</div>
<?php } ?>
</div>
</body>
</html>